package sleuthkit.util;

import org.apache.log4j.BasicConfigurator;

public class StaticHelper {
	
	private static boolean loggerConfigured = false;
	public static String newLine = "\n";
	public static String fileSeparator = System.getProperty("file.separator");

	public static String stringsToString(String[] args) {
		
		StringBuilder sb = new StringBuilder();
		
		for (String string : args) {
			sb.append(string);
		}
		
		return sb.toString();
	}

	public static void configLogger() {
		
		if (!loggerConfigured) {
			BasicConfigurator.configure();
			//ConsoleAppender ca = new ConsoleAppender(new PatternLayout("%r [%t] %-5p %c - %m%n"));
			//Logger.getRootLogger().addAppender(ca);
			loggerConfigured=true;
		}
	}

}
